/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.musigma.util;

import com.musigma.dao.UserLoginDAO;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author krishna
 */
public class AppTest {
    protected static final Log log = LogFactory.getLog(AppTest.class);
    static ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(new String[]{"classpath:ApplicationContext.xml"});
    static BeanFactory factory = (BeanFactory) appContext;
    static private UserLoginDAO userLoginDAO = (UserLoginDAO) factory.getBean("userLoginDAO");


    public static void main(String args[]) throws Exception {        
       
        Map<String, Object> hMap = userLoginDAO.userLogin("krishna","krishna");
        log.info(hMap.get("PO_RESULT_SET"));
        
    }
}
